﻿@model IEnumerable<Trifecta.Models.MerchantView>

@{
    ViewBag.Title = "Merchant Transactions";
}

<h2>Your Transaction History</h2>


<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Sale_Date)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Gross_Sale)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Product_Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RetailPrice)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DiscountPrice)
        </th>

        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Sale_Date)
        </td>
        <td>
            $@Html.DisplayFor(modelItem => item.Gross_Sale)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Product_Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            $@Html.DisplayFor(modelItem => item.RetailPrice)
        </td>
        <td>
           $@Html.DisplayFor(modelItem => item.DiscountPrice)
        </td>


    </tr>
}


</table>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick"/>
    <input type="hidden" name="hosted_button_id" value="PQ6854UWF3F6G"/>
    <input type="hidden" name="amount" value="1.99" />
   
    <input type="hidden" name="currency_code" value="USD" />



    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
    

